package com.timebank.common.rabbitmq.properties;

import com.timebank.common.rabbitmq.annotation.ConditionalOnRabbit;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * RabbitMq 配置类
 * @author shiliuyinzhen
 */
@Data
@Component
@ConfigurationProperties(prefix = "rabbitmq")
public class RabbitMqProperties {

    /**
     * 是否开启 RabbitMQ功能,
     * @see ConditionalOnRabbit 配合此注解使用
     */
    private boolean enable = false;

}
